package sqlite3

import (
	"gitee.com/mkwchecking/sr-core/storage/database/driver"
	"gorm.io/driver/sqlite"
	"gorm.io/gorm"
)

func init() {
	driver.Register(driver.SQLite3, New)
}

func New(cfg driver.Conn) gorm.Dialector {
	return sqlite.Open(cfg.GetDSN())
}
